package com.rk.kbk.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rk.kbk.common.DateJsonDeserializer;
import com.rk.kbk.common.DateJsonSerializer;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Test
 * @测试题(test)
 * @version : Ver 1.0
 */
@Entity
public class Test implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:骑手测试题
	 * @字段:id BIGINT(19)
	 */
	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@GenericGenerator(name="auto-identity",strategy="identity")
	@Column(updatable = false, columnDefinition="BIGINT(19) COMMENT '骑手测试题'")
	private java.lang.Long id;

	/**
	 * @备注:标题
	 * @字段:title VARCHAR(33)
	 */
	@Column(columnDefinition="VARCHAR(33) COMMENT '标题'")
	private java.lang.String title;

	/**
	 * @备注:选项,逗号隔开
	 * @字段:select_option TEXT(65535)
	 */
	@Column(columnDefinition="TEXT(65535) COMMENT '选项,逗号隔开'")
	private java.lang.String selectOption;

	/**
	 * @备注:正确选项,多选项逗号隔
	 * @字段:right_option TEXT(65535)
	 */
	@Column(columnDefinition="TEXT(65535) COMMENT '正确选项,多选项逗号隔'")
	private java.lang.String rightOption;

	/**
	 * @备注:是否多选
	 * @字段:is_more BIT(0)
	 */
	@Column(columnDefinition="INT(2) COMMENT '是否多选'")
	private java.lang.Integer isMore;

	/**
	 * @备注:本题分数
	 * @字段:score INT(10)
	 */
	@Column(columnDefinition="INT(10) COMMENT '本题分数'")
	private java.lang.Integer score;

	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@Column(updatable = false, columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime = new java.util.Date();

	/**
	 * @备注:
	 * @字段:upt_datetime DATETIME(19)
	 */
	@Column(columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime = new java.util.Date();

	public Test(){
	}

	public Test(
		java.lang.Long id
	){
		this.id = id;
	}



	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.Long getId() {
		return this.id;
	}


	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	public java.lang.String getTitle() {
		return this.title;
	}


	public void setSelectOption(java.lang.String selectOption) {
		this.selectOption = selectOption;
	}

	public java.lang.String getSelectOption() {
		return this.selectOption;
	}


	public void setRightOption(java.lang.String rightOption) {
		this.rightOption = rightOption;
	}

	public java.lang.String getRightOption() {
		return this.rightOption;
	}

	public Integer getIsMore() {
		return isMore;
	}

	public void setIsMore(Integer isMore) {
		this.isMore = isMore;
	}

	public void setScore(java.lang.Integer score) {
		this.score = score;
	}

	public java.lang.Integer getScore() {
		return this.score;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}


	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}
}
